Returns the Index value of the split containing the specified coordinate pair.
Syntax
object.SplitContaining x, y
The SplitContaining method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
x | Required. A single precision value that defines the horizontal coordinate, based on the coordinate system of the grid's container. |
y | Required. A single precision value that defines the vertical coordinate, based on the coordinate system of the grid's container. |
Remarks
This value ranges from 0 to 1 less than the setting of the Count property of the Splits collection (0 to Splits.Count - 1).
This method is useful when working with mouse and drag events when you are trying to determine where the user clicked or dropped another control in terms of a grid column.
If either argument is outside of the grid's data area, this method returns -1.